import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'

import axios from 'axios'

//axios.defaults.baseURL = 'http://localhost:8080'  // SpringBoot 启动的地址
axios.defaults.headers.post['Content-Type'] = 'application/json'

// 初始化应用
const app = createApp(App)

// 集中加载插件
app.use(router)
app.use(ElementPlus)

// 挂载到DOM
app.mount('#app')